class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|

       t.string :username
       t.string :email
       t.string :complete_name
       t.string :crypted_password
       t.string :password_salt
       t.string :persistence_token
       t.integer :role_id
       t.timestamps  
    end
    
    User.create :username =>'admin'  ,:complete_name=>'Administrador',:email => 'admin@veureka.com'  ,:password=>'admin123'  ,:password_confirmation=>'admin123',   :role_id=>1
    User.create :username =>'lider'  ,:complete_name=>'Lider de proyecto',:email => 'lider@veureka.com'  ,:password=>'lider'  ,:password_confirmation=>'lider',   :role_id=>2
    User.create :username =>'trabajador'  ,:complete_name=>'Miembro de equipo',:email => 'trabajador@veureka.com'  ,:password=>'trabajador'  ,:password_confirmation=>'trabajador',   :role_id=>3
  end

  def self.down
    drop_table :users
  end
end
